package com.hzy.orderSystem.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 小宝
 * @create 2021/4/17 10:10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Record implements Serializable {

    private Long id;
    private String content;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private String time;
    private Integer type;
    private Order order;
    private Support support;

    public Record(String content, String time, Integer type, Order order) {
        this.content = content;
        this.time = time;
        this.type = type;
        this.order = order;
    }
}
